<template>
  <div class="aside" :style="{ height: he }">
    <div class="ht">{{ title }}</div>
    <ul>
      <li v-for="item in asideList" :key="item.id">
        {{ item.label }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'myAside',
  props: {
    title: {
      type: String,
      defalut: '标题'
    },
    asideList: {
      type: [Object, Array],
      require: true
    },
    he: {
      type: String
    }
  },

  data() {
    return {}
  }
}
</script>

<style lang="less" scoped>
.aside {
  width: 216px;
  height: 986.2px;
  background: #eee;
  .ht {
    width: 100%;
    height: 66px;
    line-height: 66px;
    font-size: 24px;
    text-align: center;
    background: #003b90;
    font-weight: 700;
    color: #fff;
  }
  li {
    height: 48px;
    color: #000;

    font-weight: 700;
    text-align: center;
    line-height: 48px;
    border-bottom: 1px solid rgb(168, 168, 168);
    &:hover {
      color: red;
    }
  }
}
</style>
